04. Testing the Total

Total Probability

Using your code from the previous section, or just a pen and paper, answer the following question.

Positive test quiz

QUESTION:

What is the probability of a positive test result given the following values:
p_disease = 0.2, p_pos_given_disease= 0.6, and p_pos_given_no_disease= 0.6?

SOLUTION:

NOTE: The solutions are expressed in RegEx pattern. Udacity uses these patterns to check the given answer